import { http } from "@/utils/http"

/**
 * 订单列表
 */
export const getOrderList = (data) => {
    return http({
        method: 'POST',
        url: '/admin/queryOrderHistory',
        data,
    })
}

/**
 * 订单详情
 */
export const getOrderInfo = (data) => {
    return http({
        method: 'POST',
        url: '/order/getOrderDetailById',
        data,
    })
}


/**
 * 订单支付
 */
export const orderPayResult = (data) => {
    return http({
        method: 'POST',
        url: '/order/queryOrderStatus',
        data,
    })
}

/**
 * 订单价格
 */
export const commitOrder = (data) => {
    return http({
        method: 'POST',
        url: '/order/commitOrder',
        data,
    })
}

/**
 * 退货
 */
export const returnOrder = (data) => {
    return http({
        method: 'POST',
        url: '/order/returnOrder',
        data,
    })
}